#include<linux/module.h>
#include<linux/init.h>
MODULE_LICENSE("GPL");
static int __init __symbol_get_init(void);
static void __exit __symbol_get_exit(void);

int __init __symbol_get_init(void)
{
	const char * symbol_name;
	void *addr;
	symbol_name="symbol_A"; // kernel module symbol_name is "symbole_A"
	addr=__symbol_get(symbol_name);

	if(addr != NULL)
	{
		printk("the address of %s is: %lx\n",symbol_name,(unsigned long)addr);	
	}else
	{
		printk("%s isn't found\n",symbol_name);	
	}

	symbol_name="symbol_0";
	addr=__symbol_get(symbol_name);

	if(addr != NULL)
		printk("the address of %s is: %lx\n",symbol_name,(unsigned long)addr);
	else
		printk("%s isn't found\n",symbol_name);
	return 0;
}

void __exit __symbol_get_exit(void)
{
	printk("module exit ok!\n");
}
module_init(__symbol_get_init);
module_exit(__symbol_get_exit);
